﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<PagedList<CourseSystem.Core.Entities.ExaminationInfo>>" %>
<%@ Import Namespace="Webdiyer.WebControls.Mvc" %>
<table width="748" border="1" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC">
    <tr>
        <td width="498" height="25" bgcolor="#D1E5F0">
            <div align="center" class="style13">
                习题集</div>
        </td>
        <td width="133" bgcolor="#D1E5F0">
            <div align="center">
                <span class="style5">上传时间</span></div>
        </td>
        <td width="109" bgcolor="#D1E5F0">
            <div align="center">
                <span class="style13">操作</span></div>
        </td>
    </tr>
    <% foreach(var item in Model){%>
    <tr bgcolor="#FFFFFF" class="style1">
        <td height="25" align="left">
            <%=item.Title %>
        </td>
        <td>
            <div align="center">
               <%=item.AddTime %></div>
        </td>
        <td>
            <div align="center">
                <a href="<%=Url.Action("ExamDetail",new {item.Id}) %>">点击进入</a></div>
        </td>
    </tr><%}  %>
</table><table width="98%" height="7" border="0" align="center" cellpadding="0" cellspacing="0"
    bordercolor="#FFFFFF">
    <tr>
        <td class="gray12">
            &nbsp;
        </td>
        <td align="right" class="gray12">
            <%=Html.AjaxPager(Model, new PagerOptions() { ContainerTagName = "span", CssClass = "mvcPager", PageIndexParameterName = "pid", ShowMorePagerItems = false, AlwaysShowFirstLastPageNumber = true, }, new AjaxOptions() { UpdateTargetId = "listDiv" })%>
            共<%=Model.TotalItemCount %>条记录，页<%=Model.CurrentPageIndex %>/<%=Model.TotalPageCount %>
        </td>
    </tr>
</table>